POV-Ray : Newsgroups : povray.advanced-users : slope function ?? : Re: slope function ?? Server Time
29 Jul 2024 12:23:43 EDT (-0400)
  Re: slope function ??  
From: Christoph Hormann
Date: 21 Apr 2002 05:10:39
Message: <3CC2820F.C84D7164@gmx.de>
ahmet oktar wrote:
> 
> hi dear Povers!!
>  i want to make a slop function but always return zero. is it possible?
>   #declare ff =  function { pigment {slope {<0,0,1> ,0,1} }}

No, it is not, the slope pattern requires the normal vector from the
intersection test which is not available in fucnctions.  

There is no method in Povray 3.5 to do this for arbitrary shapes but you
can use the object_slope pattern from megapov MCP that was made exactly
for this purpose:

http://www.tu-bs.de/~y0013390/povcyg/docu/docu_pattern01.html#OBJSLOPE

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 20 Apr. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.